<?php

namespace App\Http\Controllers;

use App\Http\Response;
use Illuminate\Http\Request;

class FileController extends Controller
{
    public function upload(Request $request)
    {
        $type = $request->input('imgType', 'signTrue');
        $image = $request->file('image')->store($type);

        return Response::success($image);
    }
}
